import Vue from 'vue'
import Vuex from 'vuex'

import { getToken, setToken, removeToken } from '@/utils/auth'

const user  = {
  state : {
    name:'',
    avatar:'',
    token: getToken('Token'),
    roles: [],
  },

  actions() {
          //登出

  }


}


export default new Vuex.Store({
  modules: {
      user
  }
});